/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.wider.foundation.channel;

import java.io.IOException;
import java.io.InputStream;

    /**
     * Public interface for user to define the implementation of a NetChannel Response Handler
     * @author William Choi <avextk@gmail.com>
     * @param given     the name associated with the corresponding request.
     * @param resp_code the returned Response Code
     * @param resp_mesg the returned Response Message
     * @param stream_in the reference of the InputStream for the returned content
     * @param ex        the Exception to be passed back to the handler.
     */
    public interface ChannelResponseIntf{
        public void handle(Object callbackID, int resp_code, String resp_mesg, InputStream stream_in) throws IOException;
        public void handle(Object callbackID, Throwable ex);
    }
